Click here to Skip to main content
15,904,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all
i am showing opening a child window on a button click.
for this i am using JavaScript code as

<code>window.open(link,"myWindow", "menubar=no,location=no,Addressbar=no,toolbar=false,scrollbars=no,status=0,top = 0, left = 0,resizable=no, alwaysraised=yes,titlebar=no, height=550, width=400, top=300, left=300");</code>

this is hiding address bar in internet explorer but not in Mozilla Firefox.

but now i want to hide the address bar and title bar.
can anyone please suggest mw the code for this


thanks
Posted
Updated 8-Apr-11 19:09pm
v3

Please use following:

if you would like to display Address bar then set location=1 else location=0

C#
window.open (link, "WindowName","location=1,status=1,scrollbars=1, width=100,height=100");



Thanks,
Imdadhusen
 
Share this answer
 
Comments
Sharma Richa 9-Apr-11 1:49am    
its not working in firefox.
can i hide the title bar of child window
Look for fullscreen, titlebar, resizeable property!

Have a look at this for full detail: Window.open Method[^]

For Firefox, look here:
https://support.mozilla.com/en-US/forum/1/120127[^]

Lots of people have reported that in 'Firefox 3' window.open resizable option is not working.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900